package com.situ.blog.pojo.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class BlogVO {
    @ExcelProperty(value = "ID")
    private Integer id;
    @ExcelProperty(value = "姓名")
    private String name;
    @ExcelProperty(value = "头像")
    private String image;
    @ExcelProperty(value = "点击数量")
    private Integer clickCount; //点击数量
    @ExcelIgnore
    private String content;
    @ExcelProperty(value = "状态")
    private Integer status;
    @ExcelProperty(value = "逻辑删除")
    //原本是is_deleted，为了规范手册才改的，但是在Excel导出时，
    // 有冲突找不到信息无法导出，可改为isDeleted
    private Integer deleted;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @ExcelProperty(value = "博客分类id")
    private Integer typeId; //博客分类
    @ExcelProperty(value = "博客分类名")
    private String typeName;


}
